﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using QLKHO.Class;

namespace QLKHO.Forms
{
    public partial class frmReportPhieuXuatKho : Form
    {
        public frmReportPhieuXuatKho()
        {
            InitializeComponent();
        }

        private void frmReportPhieuXuatKho_Load(object sender, EventArgs e)
        {
            string strSQL = "ALTER proc [dbo].[proc_baocaophieuxuat] as exec proc_load_reportChiTietPhieuXuat " + "'" + clsMain.strMSPhieuXuatKho + "','" + System.DateTime.Now + "'";
            ADODB.Recordset Rs = new ADODB.Recordset();
            Rs.Open(strSQL, clsMain.flexConn.fcConn, ADODB.CursorTypeEnum.adOpenStatic, ADODB.LockTypeEnum.adLockOptimistic, -1);
            this.qLKHODataSet.proc_baocaophieuxuat.Clear();
            // TODO: This line of code loads data into the 'qLKHODataSet.proc_baocaophieuxuat' table. You can move, or remove it, as needed.
            this.proc_baocaophieuxuatTableAdapter.Fill(this.qLKHODataSet.proc_baocaophieuxuat);

            this.reportViewer1.RefreshReport();
        }
    }
}
